//
//  UITextField+NavInfo.h
//  gweAD
//
//  Created by Marx on 2016/11/16.
//  Copyright © 2016年 mengy. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM (NSInteger,CheckTextError) {
    CheckSuccess = 0,
    EmptyError = -10000,
    FormatError = -10001,
    LengthError = -10002
};

@interface UITextField (NavInfo)

/**
 TextField 限制字符长度
 */
@property(nonatomic,assign)NSInteger limitMaxTextLength;

- (CheckTextError)checkTextIsNotEmpty;

- (CheckTextError)checkTextIsPhoneNumber;
- (CheckTextError)checkTextIsPassword;
//- (CheckTextError)checkTextIsCAACCertificateNo;
- (CheckTextError)checkTextIsLicenseNumber;
- (CheckTextError)checkTextIsSecurityPassword;


@end
